﻿@{
    ViewBag.Title = "资料找回密码第三步";
    ViewBag.Page = "user";
    Layout = "~/Views/Shared/_FindPasswordLayout.cshtml";
    ViewBag.Menu = "step3";
    
}
@section HeadJavaScript{
    <script type="text/javascript" src="/Scripts/angular/base/angular.min.js"></script>
    <!--[if (IE 6)|(IE 7)]><script type="text/javascript" src="/Scripts/angular/base/json2.js"></script><![endif]-->
    <script type="text/javascript" src="/Scripts/angular/js/getpassword.js"></script>
    <script type="text/javascript" src="/Scripts/angular/base/angular.autoload.js"></script>
}
<div class="pos"><img src="~/images/images/pay_dian.jpg" /> <a href="#">会员中心</a> - 取回密码账户</div>
<div class="form1" style="background:none;">
    
@{
    if (@ViewData["question"] != null)
    {
        <p class="tishi">通过注册账号资料找回</p>
	<form class="form1 st_form"  name="form" on-submit="submit()" onsubmit="return false;" ng-controller="Ctrl" 
        ng-init="load({
            question: { msg:'选择问题',error: '',success:true}
            ,answer: { required:'请填写正确答案',error: '请输入答案',success:true}
            ,submit:{error:'系统异常，请联系我们',answer:'答案错误',newidentity:'服务器繁忙，请稍后再试',identity:'服务器繁忙，请稍后再试'}
        });
        questions={'00002012070316122304_929047621':'我就读的第一所学校名称？',
                    '00002012070316122304_929047622':'我最喜欢的休闲运动是什么？',
                    '00002012070316122304_929047623':'我最喜欢的运动员是谁？',
                    '00002012070316122304_929047624':'我最喜欢的物品的名称？',
                    '00002012070316122304_929047625':'我最喜欢的歌曲？',
                    '00002012070316122304_929047626':'我最喜欢的食物？',
                    '00002012070316122304_929047627':'我最爱的人的名字？',
                    '00002012070316122304_929047628':'我最爱的电影？',
                    '00002012070316122304_929047629':'我妈妈的生日？'};
        submit.url='/answer/Validate/@ViewData["code"]?question=@ViewData["question"]';
        redirect.url='/usercenter/step4/r/Default/';
        ">
    <table class="tab1" width="720">
        <tr>
            <td width="115"><span class="txtr">密码保护问题：</span> </td>
            <td width="270" ng-bind-template="{{questions['@ViewData["question"]']}}">
                
            </td>
            <td>
                        	
            </td>
        </tr>
        <tr>
            <td><span class="txtr">您的答案：</span></td>
            <td width="270">
                <input name="answer" type="text" class="text270" ng-init="answer.input()" on-focus="answer.input()" on-blur="answer.validate();" ng-model="answer.value" required/>
            </td>
            <td>
            </td>
        </tr>
        <tr style="display:none" ng-show="submit.error">
                <td></td>
                <td colspan="2">
                    <span class="error" >{{submit.error}}</span>
                </td>
            </tr>           
        <tr>
            <td></td>
            <td align="center">
                <div style="height:50px; margin-top:15px;"><input type="submit" value="" class="find_xyb" /></div>
            </td>
            <td></td>
        </tr>
    </table>
</form>
    }
    else
    {
        
    <form class="form1 st_form" action="step2.html">
        <ul>
            <li class="pl178">
                <img src="/images/images/safe_tip.jpg"/>该账号的用户信息未填写，本次找回密码方式不可用
            </li>
            <li class="pb50">
				<span class="txtrStep">&nbsp;</span> &nbsp; <strong class="orange">&nbsp;</strong> 
				<input type="button" class="onext" value="返回" onClick="location.href='/usercenter/step2@{if (@ViewData["code"] != null)
                                                                                             {<text>/@ViewData["code"]</text>}}'"  />
			</li>
        </ul>
    </form>
    }
}         
</div>
            
